import java.util.*;
import java.util.concurrent.Callable;

public class ExpressionGenerator{
  public static void main(String [] args){
    MakeQuestions mq = new MakeQuestions();
    NifixToSuffix nts = new NifixToSuffix();
    Calculator calculator = new Calculator();

    int count = Integer.parseInt(args[0]);
    int level = Integer.parseInt(args[1]);
    String filename = args[2];
    String result;

    List list = new <String>ArrayList();
    IOFile iof = new IOFile(filename);
    String expr;

    if (count > 0 && level > 0 && !filename.equals(null)) {
        for (int i=0;i<count;i++) {
            expr = mq.getExper(level);
            iof.WriteQuestionsToFile(expr + "\r\n");

        }
    }
    else {
      System.out.println("题目数和题目等级必须大于零，请重新传入参数！");
    }
  }
}